﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditEmployee.aspx.cs" Inherits="Skyworth.CRM.Web.BasicData.EditEmployee" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title>员工信息编辑</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <%--[if IE]>
     <link href="../themes/css/ieHack.css" rel="stylesheet" type="text/css" />
    <![endif]--%>
    <script src="../javascripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <link href="../themes/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/core.css" rel="stylesheet" type="text/css" />
    <link href="../themes/css/pages.css" rel="stylesheet" type="text/css" />
      <style type="text/css">        
        a
        {
            display: block;
        }
        .red
        {
            color: Red;
            font-weight: bold;
        }       
        table
        {
            border-collapse: collapse;
            border-spacing: 0;
            table-layout: fixed;
            width: 100%;
            border: solid 1px #e7e7e7;
        }
        table tr td
        {
            border-bottom: solid 1px #e7e7e7;
            padding: 0px 3px;
            background-color: #EFEFEF;
        }
        td label
        {
            padding: 2px 2px;
        }
        td.left
        {
            border-right: solid 1px #e7e7e7;
            width: 65px;
        }
        td.right
        {
            background: #FFF;
        }
        td.right, td.readOnly
        {
            padding: 5px 3px;
        }
        .content
        {
            overflow: auto;           
            border: solid 1px #CCC;
            line-height: 21px;
            background: #FFF;
            padding: 5px;
        }       
        select
        {
        	width:185px;
        	height:25px;
        }
        
    </style>
     <script type="text/javascript">
         function SaveCheck() {
             var objEmpName = $("#txtEmpName");
             var name = objEmpName.val();
             if (name == "" || name.length <= 0) {
                 alert("请输入员工姓名！");
                 objEmpName.focus();
                 return false;
             }
//             var brId = $("#ddlBR").val();
//             if (brId <= 0) {
//                 alert("请选择所属机构！");
//                 return false;
//             }
             var deptId = $("#ddlDepartment").val();
             if (deptId <= 0) {
                 alert("请选择所属部门！");
                 return false;
             }
         }

         $(document).ready(function() {
             $("input[type=text],textarea").addClass("textInput").width(180).focus(function() { $(this).addClass("focus"); }).blur(function() { $(this).removeClass("focus") });
             $("div.button").hover(function() { $(this).addClass("buttonHover"); },
                                 function() { $(this).removeClass("buttonHover"); });
             $("div.buttonActive").hover(function() { $(this).addClass("buttonActiveHover"); },
                                function() { $(this).removeClass("buttonActiveHover"); }) 
             
             $("#btnClose").click(function() {
                 parent.addWindow.close();
             })
             $("#btnSave").click(function(){                
                 return SaveCheck();
             })

         })
    </script>
</head>
<body style="text-align: left; background-color: White;" >
    <form id="form1" runat="server">
    <div>
       <div style="margin:2px;">
            <div class="panel" >
                <div class="panelHeader">
                    <div class="panelHeaderContent">
                        <h1>
                            员工信息</h1>
                    </div>
                </div>
                <div class="panelContent">
                    <div class="content" >
                         <table width="100%">
                            <tr>
                                 <td class="left">
                                    <label for="txtEmpName">
                                        员工姓名：</label>
                                </td>
                                <td class="right">
                                    <asp:TextBox ID="txtEmpName"  runat="server" MaxLength="50" title="请输入员工姓名!"></asp:TextBox><em
                                        class="red">*</em>
                                   
                                </td>
                                
                                <td class="left">
                                    <label for="txtEmpCode">
                                        员工编码：</label>
                                </td>
                                <td class="right">
                                    <asp:TextBox ID="txtEmpCode" runat="server" MaxLength="50" title="请输入员工编码!"></asp:TextBox>                                    
                                   
                                </td>
                                
                                
                            </tr>
                            <tr>
                                <%--<td class="left">
                                    <label for="ddlBR">
                                        所属机构：</label>
                                </td>
                                <td class="right">
                                    <asp:DropDownList ID="ddlBR" runat="server">
                                    </asp:DropDownList> <em class="red">*</em>                               
                                </td>--%>
                                <td class="left">
                                    <label for="ddlDepartment">
                                        所属部门：</label>
                                </td>
                                <td class="right">
                                    <asp:DropDownList ID="ddlDepartment" runat="server">
                                    </asp:DropDownList><em class="red">*</em>                             
                                </td>
                                 <td class="left">
                                    <label for="txtJobTitle">
                                        员工职务：</label>
                                </td>
                                <td class="right">
                                    <asp:TextBox ID="txtJobTitle" runat="server" MaxLength="50" title="请输入员工职务!"></asp:TextBox>
                                                                  
                                </td>
                            </tr>
                             <tr>                               
                                <td class="left">
                                    <label for="txtEmail">
                                        邮件地址：</label>
                                </td>
                                <td class="right">
                                    <asp:TextBox ID="txtEmail"  runat="server" MaxLength="100" title="请输入员工电子邮件地址!"></asp:TextBox>                                
                                </td>
                                 <td class="left">
                                    <label for="txtPhone">
                                        联系电话：</label>
                                </td>
                                <td class="right" >
                                    <asp:TextBox ID="txtPhone"  runat="server" MaxLength="50" title="请输入员工职务!"></asp:TextBox>
                                                                 
                                </td>
                            </tr>
                             <tr>                               
                                <td class="left">
                                    <label for="txtBankName">
                                        银行名称：</label>
                                </td>
                                <td class="right">
                                    <asp:TextBox ID="txtBankName"  runat="server" MaxLength="50" title="请输入银行名称!"></asp:TextBox>                                
                                </td>
                                 <td class="left">
                                    <label for="txtBankNumber">
                                        银行帐号：</label>
                                </td>
                                <td class="right" >
                                    <asp:TextBox ID="txtBankNumber"  runat="server" MaxLength="50" title="请输入银行帐号!"></asp:TextBox>
                                                                 
                                </td>
                            </tr>
                             <tr>
                               
                                <td class="left">
                                    <label for="ddlStatus">
                                        状态：</label>
                                </td>
                                <td class="right" colspan="3">
                                    <asp:DropDownList ID="ddlStatus" runat="server">
                                        <asp:ListItem Value="1">启用</asp:ListItem>
                                        <asp:ListItem Value="0">停用</asp:ListItem>
                                    </asp:DropDownList>         
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" class="readOnly" style="padding-right: 12px; background: url('../themes/default/images/grid/grid.png') repeat scroll 0 0">
                                   <a title="清空" href="javascript:void(0)" class="button" style="float:left" id="btnClose"><span>关闭</span></a>
                                   
                                    <div class="button" style="float: right;margin-right: 5px;">
                                        <div class="buttonContent">
                                            <asp:Button ID="btnSave" runat="server" Text="保存" 
                                                CssClass="serverButton" onclick="btnSave_Click" />
                                        </div>
                                    </div>
                                    <div style="clear:both;float:none;display:none;"></div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="panelFooter">
                    <div class="panelFooterContent">                        
                    </div>
               </div> 
           </div>
        </div>
    </div>
    </form>
</body>
</html>
